package com.ruoyi.project.system.lotto.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.ruoyi.project.system.lotto.mapper.UserLogsMapper;
import com.ruoyi.project.system.lotto.domain.UserLogs;
import com.ruoyi.project.system.lotto.domain.UserLogsExample;
@Service
public class UserLogsService{

    @Resource
    private UserLogsMapper userLogsMapper;

    
    public long countByExample(UserLogsExample example) {
        return userLogsMapper.countByExample(example);
    }

    
    public int deleteByExample(UserLogsExample example) {
        return userLogsMapper.deleteByExample(example);
    }

    
    public int deleteByPrimaryKey(Long id) {
        return userLogsMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(UserLogs record) {
        return userLogsMapper.insert(record);
    }

    
    public int insertSelective(UserLogs record) {
        return userLogsMapper.insertSelective(record);
    }

    
    public List<UserLogs> selectByExample(UserLogsExample example) {
        return userLogsMapper.selectByExample(example);
    }

    
    public UserLogs selectByPrimaryKey(Long id) {
        return userLogsMapper.selectByPrimaryKey(id);
    }

    
    public int updateByExampleSelective(UserLogs record,UserLogsExample example) {
        return userLogsMapper.updateByExampleSelective(record,example);
    }

    
    public int updateByExample(UserLogs record,UserLogsExample example) {
        return userLogsMapper.updateByExample(record,example);
    }

    
    public int updateByPrimaryKeySelective(UserLogs record) {
        return userLogsMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(UserLogs record) {
        return userLogsMapper.updateByPrimaryKey(record);
    }

    public UserLogs getByPhone(String phone) {
        return userLogsMapper.getByPhone(phone);
    }

    public UserLogs getByOpenid(String openid) {
        return userLogsMapper.getByOpenid(openid);
    }
}
